#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
  class MainWindow;
}

class MainWindow : public QMainWindow
{
  Q_OBJECT

public:
  explicit MainWindow(QWidget *parent = 0);
  ~MainWindow();

private slots:
  void on_pushButton_clicked();

  void on_pushButton_2_clicked();

  void on_pushButton_3_clicked();

  void CBinarization(int threshold);


  //int Matrix_multip(int )

private:
  Ui::MainWindow *ui;
  QImage img;
  QImage *img_gray;
  QImage *img_bin;
  bool calcu;
  double highthresh;
  double lowthresh;
  QRgb edge;//边缘颜色
  QRgb not_edge;//非边缘颜色


  int threshold;
};

#endif // MAINWINDOW_H
